﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.DynamicData;
using System.Collections;
using log4net;

public partial class template_twocolumntemplate : System.Web.UI.MasterPage
{
    private static readonly ILog log = LogManager.GetLogger(typeof(template_twocolumntemplate));

    private String[] infrastructure = new String[] {"Rooms","Departments" };

    private String[] cohortArray = new String[] { "Cohorts", "CohortModules", "Semester" };

    protected void Page_Load(object sender, EventArgs e)
    {
        System.Collections.IList visibleTables = MetaModel.Default.VisibleTables;

        if (visibleTables.Count == 0)
        {
            throw new InvalidOperationException("There are no accessible tables. Make sure that at least one data model is registered in Global.asax and scaffolding is enabled or implement custom pages.");
        }

        InfrastructureRepeater.DataSource = visibleTables;
        InfrastructureRepeater.DataBind();
    }
}
